<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>这个index页面</h1>
	<c:choose>
		<c:when test="${not empty user}">
			<p>${user.name}</p>
		</c:when>
		<c:otherwise>
			<form action="">
				登录名：<input type="text" name="loginName" /> 
				密  码：<input type="password" name="password" />
			</form>
		</c:otherwise>
	</c:choose>
</body>
</html>